from fastapi import FastAPI, Header
from typing import Optional

app = FastAPI()


@app.post("/api/user")
async def add_user(query: Optional[str] = Header(None)):
    return {"cookie参数": query}
